result=`docker ps | grep $1`
echo $result
if [ -z "$result" ]; then
    docker run -d --name $1 -v /deploy/data/$1:/deploy/data/$1 -p $2:$2 amazoncorretto:17 java -jar /deploy/data/$1
else 
    docker restart $1
fi